<!doctype html>
<!--suppress ALL-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>修改员工信息</title>
    <link rel="stylesheet" href="/vendor/simple-line-icons/css/simple-line-icons.css">
    <link rel="stylesheet" href="/vendor/font-awesome/css/fontawesome-all.min.css">
    <link rel="stylesheet" href="/css/styles.css">
</head>
<body>
<form th:action="@{/distri}" method="post">
    <!--    <input type="hidden" th:value="${staff.getStaffId()}" name="staffId"><input type="hidden" th:value="${staff.getGender()}" name="gender">-->
    <div class="content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-10">
                    <div class="card">
                        <div class="card-header bg-light">
                            人员分配
                        </div>
                        <div class="card-body">
                            <div class="row mb-5">
                                <div class="col-md-4 mb-4">
                                    <div>你好，模型主管</div>
                                    <div class="text-muted small">以下是分配的信息</div>
                                </div>

                                <div class="col-md-8">
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="form-control-label">员工编号</label>
                                                <input class="form-control" id="staffId" name="staffId">
                                            </div>
                                        </div>

                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="form-control-label">项目编号</label>
                                                <input class="form-control" name="projectId" th:value="${pro.proId}"
                                                       readOnly="true">
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="form-control-label">项目名称</label>
                                                <input class="form-control" id="projectName" name="projectName"
                                                       th:value="${pro.proName}" readOnly="true">
                                            </div>
                                        </div>
                                        <input type="hidden" class="form-control" id="projectName" name="projectName"
                                               th:value="${pro.proName}" readOnly="true">
                                        <input type="hidden" class="form-control" id="completion" name="completion"
                                               th:value="${0.0}">
                                        <input type="hidden" class="form-control" id="absence" name="absence"
                                               th:value="${0}">

                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="form-control-label">GPA</label>
                                                <input class="form-control" id="GPA" name="GPA"
                                                       placeholder="GPA范围：0.5~2.0">
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="form-control-label">项目建立时间</label>
                                                <input type="date" class="form-control" id="proStartDate"
                                                       name="proStartDate"
                                                       th:value="${#dates.format(pro.proStartTime,'yyyy-MM-dd')}"
                                                       readOnly="true">
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label class="form-control-label">项目结束时间</label>
                                                <input type="date" class="form-control" id="proEndDate"
                                                       name="proEndDate"
                                                       th:value="${#dates.format(pro.proEndTime,'yyyy-MM-dd')}"
                                                       readOnly="true">
                                            </div>
                                        </div>
                                        <input type="hidden" class="form-control" id="advice" name="advice"
                                               th:value="${null}">

                                    </div>


                                </div>
                            </div>
                            <hr>
                        </div>

                        <div class="card-footer bg-light text-right">
                            <a onclick="javascript:if (confirm('确定分配吗？')) { return true;}else{return false;};">
                                <button id="save" type="submit" class="btn btn-primary">保存分配</button>
                            </a>
                            <!--<a id="cancel"><button class="btn btn-primary">取消修改</button></a>-->
                        </div>
                        <div class="card-footer bg-light text-right">
                            <a href="/manager/all_msg">
                                <button type="button" class="btn btn-outline-danger">取消</button>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
<script src="/vendor/jquery/jquery.min.js"></script>
<script src="/vendor/popper.js/popper.min.js"></script>
<script src="/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="/vendor/chart.js/chart.min.js"></script>
</body>
</html>
